home *** CD-ROM | disk | FTP | other *** search
- /*
- * Program to output 10 pages of text
- * using the VDI cursor text features.
- */
-
- main()
- {
- int workout[66];
- int dev_handle;
- int i,j;
- char input_string[2];
-
- static int echo_xy[] = {0, 0};
- static int workin[] = {0,0,0,0,0,0,0,0,0,0,
- 0,'D','I','S','P','L','A','Y',' '};
-
- /* initialize the device and put characteristics in workout */
- v_opnwk(workin,&dev_handle,workout);
-
- /* enter cursor text mode */
- v_enter_cur(dev_handle);
-
- for (i = 1; i <= 10; ++i) {
-
- for (j = 1; j <= 25; ++j) {
-
- /* specify direct cursor address */
- vs_curaddress(dev_handle,j,1);
-
- /* output cursor addressable text */
- v_curtext(dev_handle,
- "This is a test of the VDI cursor text. ");
- v_curtext(dev_handle,
- "This is a test of the VDI cursor text. ");
- }
-
- /* move cursor home */
- v_curhome(dev_handle);
-
- /* erase to end of screen */
- v_eeos(dev_handle);
- }
-
- /* close workstation */
- v_clswk(dev_handle);
-
- }